package chen.web.message;

import java.util.List;

import chen.web.user.Account;

class MessageBox {
	private Account belong;
	private List<Message> messages;
	private int capacity;
	private int beginOffset;
	
	protected MessageBox(Account belong, int capacity, int beginOffset){
		this.belong = belong;
		this.capacity = capacity;
		this.beginOffset = beginOffset;
	}
	
	protected void setMessages(List<Message> messages){
		this.messages = messages;
	}
	
	public Account getBelong() {
		return belong;
	}

	public List<Message> getMessages() {
		return messages;
	}

	public int getCapacity() {
		return capacity;
	}

	public int getBeginOffset() {
		return beginOffset;
	}
	
}
